﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Timers;

namespace FormaBedoboNS
{
    static class Program
    {
        public static FormaBedoboGame game;

        static void Main(string[] args)
        {
            
            // timer a GC-hez
            System.Timers.Timer gcTimer = new System.Timers.Timer(200);

            gcTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent);
            gcTimer.Interval = 200;
            gcTimer.Enabled = true;

            Console.SetWindowSize(140, 50);
            Console.BufferHeight = 2000;
            Console.Title = "Formabedobó játék konzol";
            Console.WriteLine("Alkalmazás start");
            using (game = new FormaBedoboGame())
                game.Run();
        }

        private static void OnTimedEvent(object source, ElapsedEventArgs e)
        {
            GC.Collect();
        }
    }
}
